package com.ynet.middleground.contract.bean;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author liulx
 * @description 签章位置信息
 * @date 2020-04-19 18:14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "签章位置信息", description = "签章位置信息")
public class SignPos implements Serializable {

    private static final long serialVersionUID = 154709060010675642L;

    @ApiModelProperty(value = "定位类型，0坐标定位，1关键字定位，默认0（若为关键字定位，签章类型（signType）必须指定为关键字定位才生效）", notes = "定位类型",
        dataType = "String")
    private String posType;

    @ApiModelProperty(value = "签署页码 \n 若为多页签章，支持页码格式“1-3,5,8”，坐标定位时不可空", notes = "签署页码，若为多页签章，支持页码格式“1-3,5,8”，坐标定位时不可空",
        dataType = "String")
    private String posPage;

    @ApiModelProperty(value = "签署位置 X 坐标，默认值 0", notes = "签署位置 X 坐标，默认值 0", dataType = "float")
    private float posX;

    @ApiModelProperty(value = "签署位置 Y 坐标，默认值 0", notes = "签署位置 Y 坐标，默认值 0", dataType = "float")
    private float posY;

    @ApiModelProperty(value = "关键字\n仅限关键字签章时有效，若为关键字定位时，不可空；关键字建议不要设置特殊字符", notes = "关键字", dataType = "String")
    private String key;

    @ApiModelProperty(value = "印章展现宽度，将以此宽度对印章图片做同比缩放", notes = "印章展现宽度", dataType = "Float")
    private Float width;

    @ApiModelProperty(value = "是否是作废签签署，默认为 false", notes = "是否是作废签签署，默认为 false", dataType = "boolean")
    private boolean cacellingSign;

    @ApiModelProperty(value = "是否显示本地签署时间\n需要width设置92以上才可以看到时间", notes = "是否显示本地签署时间，需要width设置92以上才可以看到时间",
        dataType = "boolean")
    private boolean addSignTime;

}
